import request from "@/utils/request"

// 订单来源渠道管理列表
export function queryList(data) {
  return request({
    url: `/base/order-source/index`,
    method: "post",
    data,
  })
}
// 日志
export function getOplog(params) {
  return request({
    url: `/oplog/base.source-channel`,
    method: "get",
    params,
  })
}
//新增渠道来源-批量更新
export function batchUpdate(data) {
  return request({
    url: "/base/order-source/batch-update",
    method: "post",
    data,
  })
}
//新增渠道来源-详情
export function orderSourceDetail(params) {
  return request({
    url: "/base/order-source/detail",
    method: "get",
    params,
  })
}
//新增渠道来源-新增/编辑
export function orderSourceCreate(data) {
  return request({
    url: "/base/order-source/create",
    method: "post",
    data,
  })
}
//店铺地址删除
export function orderSourcedeleteAdress(data) {
  return request({
    url: "/base/order-source/delete",
    method: "post",
    data,
  })
}

//同步店铺地址
export function getShopShippingAddress(params) {
  return request({
    url: "/base/shop-shipping-address",
    method: "get",
    params,
  })
}
